package tcpserver;

public class RFIDServerConfig {
	
	private final int bufferSize, backlog;

	private final long acceptDelay = 100L;

	private final long readDelay = 100L;

	public RFIDServerConfig(int bufferSize, int backlog) {
		
		this.bufferSize = bufferSize;

		this.backlog = backlog;
	}

	public int getBufferSize() {
		
		return bufferSize;
	}

	public int getBacklog() {
		
		return backlog;
	}

    public long getAcceptDelay() {

        return acceptDelay;
    }

    public long getReadDelay() {

        return readDelay;
    }

    public static RFIDServerConfig defaultConfig() {
		
		return new RFIDServerConfig(1024, 16);
	}
}
